@layout("/common/_container.html"){
<div class="ibox float-e-margins">
    <div class="ibox-content">
        <div class="form-horizontal" id="wzQuestionnaireInfoForm">

            <input type="hidden" id="questionnaireId" value="${item.questionnaireId}">
            <input type="hidden" id="type" value="${item.type}">
            <input type="hidden" id="delQuestionIds" value="">
            <div class="row">
                <div class="col-sm-9">
                    <#input id="title" value="${item.title}" name="标题" disabled="${item.status!=1?'disabled':''}"/>
                    <#input id="describe" name="描述" value="${item.describe}" disabled="${item.status!=1?'disabled':''}"/>
                    <#input name="发布地区" value="${item.screenCity}" disabled="disabled"/>
                    @if(qType == 1){
                        <#input id="reward" name="赏金" value="${item.reward}" disabled="${item.status!=1?'disabled':''}"/>
                    @}
                    <#input id="" name="类型" value="${type}" underline="true" disabled="disabled"/>
                </div>
            </div>
            @for(item in questionsList){
            <div class="form-group" name="dictItem" id="dictItem${itemLP.index}" style="margin-left: 0.5%">
                <label class="col-sm-2 control-label">问题</label>
                <div class="col-sm-2">
                    <input class="form-control" type="text" value="${item.questionId}" disabled="disabled">
                </div>
                <div class="col-sm-5">
                    <input class="form-control" type="text" name="itemNum" value="${item.question}" disabled="disabled"  maxlength="50">
                </div>
                @if(status == 1){
                    <div class="col-sm-4" style="margin-left:75%;margin-top: -3.5%;">
                        <input type="hidden" id="questionId" value="${item.questionId}">
                        <#button btnCss="danger" name="删除" id="cancel" icon="fa-remove" clickFun="WzQuestionnaireInfoDlg.deleteItem(event,${item.questionId})" />
                    </div>
                @}
            </div>
            @}
            <div id="table" style="display:none;">
                <#table id="wzAddQuestionTable"/>
            </div>
            <div class="row btn-group-m-t">
                <div class="col-sm-10">
                    <#button btnCss="info" name="提交" id="ensure" icon="fa-check" clickFun="WzQuestionnaireInfoDlg.editSubmit()"/>
                    <#button btnCss="danger" name="取消" id="cancel" icon="fa-eraser" clickFun="WzQuestionnaireInfoDlg.close()"/>
                </div>
            </div>
        </div>
    </div>
</div>
<script src="${ctxPath}/static/modular/wz/wzQuestionnaire/wzQuestionnaire_info.js"></script>
<script src="${ctxPath}/static/modular/wz/wzQuestionnaire/AddQuestion.js"></script>

@}
